package com.test.deencredit.analytics_deencredit.data_sdk_deencredit.services_deencredit;

import android.content.Context;

import com.google.gson.Gson;
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.beans_deencredit.ASNtwkBn_deencredit;
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.util_deencredit.ASNetworkUtil_deencredit;
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.util_deencredit.ASUtil_deencredit;

public class ASNtwkIfo_deencredit {

    public static ASNtwkBn_deencredit getDatas_deencredit(final Context paramContext) {
        ASNtwkBn_deencredit bean = new ASNtwkBn_deencredit();
        try {
            bean.setCurrentWifi_deencredit(ASNetworkUtil_deencredit.getCurrentWifi_deencredit(paramContext));
            bean.setConfiguredWifi_deencredit(ASNetworkUtil_deencredit.getConfiguredWifi_deencredit(paramContext));
            bean.setWifiCount_deencredit(ASNetworkUtil_deencredit.getWifiCount_deencredit(paramContext));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return bean;
    }

    public static String getZipString(Context paramContext) {
        String zipString = "";
        try {
            ASNtwkBn_deencredit infoBean = getDatas_deencredit(paramContext);
            String result = new Gson().toJson(infoBean).trim();
            zipString = ASUtil_deencredit.stringToGZIP_deencredit(result);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return zipString;
    }

}
